package cn.stylefeng.guns.modular.demo.controller.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@ApiModel("政策保存")
@Data
public class SaveRuleRequest implements Serializable {
    @ApiModelProperty(value = "主键id")
    private String ruleId;
    @ApiModelProperty(value = "规则名称")
    private String name;


    @ApiModelProperty(value = "1 累加 2顺加")
    private Integer stairType;

    @ApiModelProperty(value = "金额百分比")
    private Integer money;

    @ApiModelProperty(value = "票折")
    private Integer ticket;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "价额价")
    private List<RuleLevelRequest> ruleLevelList;


    @Data
    public static class RuleLevelRequest {
        @ApiModelProperty(value = "主键id")
        private String ruleLevelId;

        @ApiModelProperty(value = "开始")
        private Integer minCount;

        @ApiModelProperty(value = "最大数")
        private Integer maxCount;

        @ApiModelProperty(value = "返利金额")
        private BigDecimal rebateAmount;
    }


}
